package edu.java.lectures.lec07.coupling.entity;

import edu.java.lectures.lec07.coupling.printing.Printable;
import edu.java.lectures.lec07.coupling.printing.PrinterHandler;
import edu.java.lectures.lec07.coupling.printing.Printirasht;

// One class - one purpose
public class Document implements Printable {

    private String content;

    public Document() {
    }

    public void setContent(String content) {
	this.content = content;
    }

    public String getContent() {
	return content;
    }

    @Override
    public String getPrintableContent() {
	// do pre-print preparation
	return content;
    }

    public void printMe(Printirasht prHandler) {
	// Printirasht prHandler = new PrinterHandler();
	// // prHandler.establishConnection();
	// // prHandler.findPrinter();
	// // prHandler.sendContentToPrinter(content);
	// // prHandler.triggerPrinting();
	// // prHandler.closeConnection();
	prHandler.print(this);
    }
}
